import * as actionTypes from './constants';

const defaultstate = {
    //tabbar 哪个被激活?
    mv:[],
    mvDetail:{}
    
    
}

const reducer = (state = defaultstate, action) => {
    
    switch (action.type) {
        
        case actionTypes.CHANGE_MV:
            // console.log(action.data,"#####");
            return {...state, mv: action.data }
        case actionTypes.CHANGE_MVDETAIL:
                // console.log(action.data,"#####");
            return {...state, mvDetail: action.data }
        
        default:
            return state;
    }
    
}
export default reducer;